{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "中国宏观杠杆率"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "         年份  居民部门  非金融企业部门  政府部门  中央政府  地方政府  实体经济部门  金融部门资产方  金融部门负债方\n",
      "0   2005-03  17.6    104.6  26.4  18.0   8.4   148.6     20.9     21.1\n",
      "1   2005-06  17.6    101.1  26.6  18.0   8.6   145.3     23.0     22.4\n",
      "2   2005-09  17.3    100.1  26.7  17.9   8.8   144.1     23.9     23.6\n",
      "3   2005-12  16.6     98.4  26.2  17.2   9.0   141.2     24.1     23.9\n",
      "4   2006-03  17.2    100.5  25.5  16.2   9.3   143.2     24.9     24.6\n",
      "..      ...   ...      ...   ...   ...   ...     ...      ...      ...\n",
      "75  2023-12  61.9    163.9  54.7  23.2  31.5   280.5     51.1     65.5\n",
      "76  2024-03  62.3    169.5  55.3  23.4  31.9   287.1     52.2     67.0\n",
      "77  2024-06  61.8    169.7  56.3  24.0  32.3   287.8     50.5     68.6\n",
      "78  2024-09  61.6    169.9  58.7  25.1  33.6   290.2     50.9     70.8\n",
      "79  2024-12  61.4    168.4  60.8  25.6  35.2   290.6     51.2     70.2\n",
      "\n",
      "[80 rows x 9 columns]\n"
     ]
    }
   ],
   "source": [
    "import akshare as ak\n",
    "\n",
    "macro_cnbs_df = ak.macro_cnbs()\n",
    "print(macro_cnbs_df)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
